package com.sxm.yiwei.activitis;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.Toast;

import com.sxm.yiwei.MainActivity;
import com.sxm.yiwei.R;
import com.sxm.yiwei.adapters.VendorBookListAdapter;

import java.util.ArrayList;
import java.util.List;

public class VendorDiscussActivity extends BaseActivity implements View.OnClickListener{

    private ImageView discussback;
    private ListView discusslist;
    private ImageView backmain;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_vendor_discuss);
        initDisCussView();
    }

    private void initDisCussView() {
        discussback = (ImageView) findViewById(R.id.vendor_discuss_back);
        discusslist = (ListView) findViewById(R.id.vendor_discusslist);
        backmain = (ImageView) findViewById(R.id.vendordis_backmain);
        backmain.setOnClickListener(this);
        discussback.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.vendor_discuss_back:
                finish();
                break;
            case R.id.vendordis_backmain:
                startActivity(new Intent(VendorDiscussActivity.this, MainActivity.class));
                AppManager.getAppManager().finishAllActivity();
                break;
        }
    }
}
